﻿@using CV.Resources
@model CV.Model.Resume

@{
    ViewBag.Title = Resources.Edit;
}
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <h2 class="page-header">@Resources.Edit</h2>

    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()

        <div class="form-horizontal">
            <h4>@Resources.Resume</h4>
            <hr />
            @Html.ValidationSummary(true)
            @Html.HiddenFor(model => model.ID)

            <div class="form-group">
                @*:STC: Begin*@
                @*@Html.LabelFor(model => model.PersonId, "PersonId", new { @class = "control-label col-md-2" })*@
                <label class="control-label col-md-2" for="PersonId">Name</label>
                @*:STC: End*@
                <div class="col-md-10">
                    @Html.DropDownList("PersonId", String.Empty)
                    @Html.ValidationMessageFor(model => model.PersonId)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Title, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Title)
                    @Html.ValidationMessageFor(model => model.Title)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Visible, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Visible)
                    @Html.ValidationMessageFor(model => model.Visible)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.WorkAuthorisationFor, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.WorkAuthorisationFor)
                    @Html.ValidationMessageFor(model => model.WorkAuthorisationFor)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.CurrentCareerLevel, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.CurrentCareerLevel)
                    @Html.ValidationMessageFor(model => model.CurrentCareerLevel)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.CurrentEducationLevel, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.CurrentEducationLevel)
                    @Html.ValidationMessageFor(model => model.CurrentEducationLevel)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.SalaryFrom, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.SalaryFrom)
                    @Html.ValidationMessageFor(model => model.SalaryFrom)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.SalaryTo, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.SalaryTo)
                    @Html.ValidationMessageFor(model => model.SalaryTo)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.PreferredCountry, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.PreferredCountry)
                    @Html.ValidationMessageFor(model => model.PreferredCountry)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.PreferredLocation, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.PreferredLocation)
                    @Html.ValidationMessageFor(model => model.PreferredLocation)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.DesiredJobType, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.DesiredJobType)
                    @Html.ValidationMessageFor(model => model.DesiredJobType)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.DesiredJobStatus, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.DesiredJobStatus)
                    @Html.ValidationMessageFor(model => model.DesiredJobStatus)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.TravelDaysPerMonth, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.TravelDaysPerMonth)
                    @Html.ValidationMessageFor(model => model.TravelDaysPerMonth)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.AvailabilityDate, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.AvailabilityDate)
                    @Html.ValidationMessageFor(model => model.AvailabilityDate)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Notes, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Notes)
                    @Html.ValidationMessageFor(model => model.Notes)
                </div>
            </div>

            <div class="form-group">
                <div class="col-md-offset-2 col-md-10">
                    <input type="submit" value=@Resources.Save class="btn btn-default" />
                </div>
            </div>
        </div>
    }

    <div>
        @Html.ActionLink(Resources.Back, "Index")
    </div>
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
